
def foo(arg, a):
    x = 100
    y = "python"
    for i in range(10):
        j = 1
        k = i
    print(globals())

foo(1,2)